package com.zmn.plat.model.entity.area;

import com.zmn.common.utils.pager.Pages;

import java.util.List;

/**
 * @author nowind
 * @since 17/10/27 19:38
 */
public class AreaQuery extends Pages {

    private static final long serialVersionUID = 2466322173088751011L;
    private int areaId;
    private int parentId;
    private int level;
    private int type;
    private String name;
    private String code;
    private String alias;
    private int status;
    private String nameOrAreaId;
    private String parentPrefix;
    /**
     * 区域名称简拼
     */
    private String simpleSpell;
    /**
     * 父节点id列表
     */
    private List<Integer> parentIdList;


    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getNameOrAreaId() {
        return nameOrAreaId;
    }

    public void setNameOrAreaId(String nameOrAreaId) {
        this.nameOrAreaId = nameOrAreaId;
    }

    public String getParentPrefix() {
        return parentPrefix;
    }

    public void setParentPrefix(String parentPrefix) {
        this.parentPrefix = parentPrefix;
    }

    public String getSimpleSpell() {
        return simpleSpell;
    }

    public void setSimpleSpell(String simpleSpell) {
        this.simpleSpell = simpleSpell;
    }

    @Override
    public String toString() {
        return "AreaQuery{" +
                "areaId=" + areaId +
                ", parentId=" + parentId +
                ", level=" + level +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", simpleSpell='" + simpleSpell + '\'' +
                ", code='" + code + '\'' +
                ", alias='" + alias + '\'' +
                ", status=" + status +
                ", nameOrAreaId='" + nameOrAreaId + '\'' +
                ", parentPrefix='" + parentPrefix + '\'' +
                ", simpleSpell='" + simpleSpell + '\'' +
                '}';
    }

    public List<Integer> getParentIdList() {
        return parentIdList;
    }

    public void setParentIdList(List<Integer> parentIdList) {
        this.parentIdList = parentIdList;
    }
}
